package com.ibm.spatiotemp.utils;

import org.apache.log4j.Logger;

import com.ibm.spatiotemp.server.datasources.DataSchema;

public class IfxInsertStringFormatter{
	public static Logger logger = Logger.getLogger(IfxInsertStringFormatter.class);
	// use virtual table
	public static String writedata_format = "insert into %s (%s,%s,%s,%s) values (?, ?, ?, ?)";
	

	public static String insertPrepareString(DataSchema schema) {
		String querystring = String.format(writedata_format, 
					schema.getTab_name(),
					schema.getMovobj_colname(),
					schema.getTs_colname(),
					schema.getX_colname(),
					schema.getY_colname()
		);
		return querystring;
	}
	
}
